package com.suns.service;

import com.github.pagehelper.PageInfo;
import com.suns.domain.Income;
import org.springframework.transaction.annotation.Transactional;

import java.math.BigDecimal;

public interface IncomeService {
    PageInfo<Income> getPage_C_Income(int i, int pageSize, String keywords);
    PageInfo<Income> getPage_Y_Income(int i, int pageSize, String keywords);

    BigDecimal get_Income(String usertype, String day, String month);

    @Transactional(rollbackFor = Exception.class)
    boolean addIncome(String tel, String name, String userType, String time, BigDecimal oldmoney, BigDecimal remoney);
}
